//
//  MSSelectSprite.m
//  MagicSword
//
//  Created by Netease on 15/11/23.
//  Copyright © 2015年 Jonear. All rights reserved.
//

#import "MSSelectSprite.h"

@implementation MSSelectSprite

- (void)setStatus:(MSSeleteSpriteStatus)status {
    _status = status;
    switch (_status) {
        case MSSeleteSpriteStatus_Normal:
            [self setColor:UIColorFromRGBA(0x22ff77, 0.5)];
            break;
        case MSSeleteSpriteStatus_Cannot:
            [self setColor:UIColorFromRGBA(0xe80c40, 0.5)];
            break;
        case MSSeleteSpriteStatus_Attack:
            [self setColor:UIColorFromRGBA(0x00ffff, 0.5)];
            break;
            
        default:
            break;
    }
}

@end
